package cn.jkgly.wxUser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 微信openid和电脑端平台用户绑定
 * @Author: jeecg-boot
 * @Date:   2020-04-11
 * @Version: V1.0
 */
@Data
@TableName("wx_pc_websocket_user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wx_pc_websocket_user对象", description="微信openid和电脑端平台用户绑定")
public class WxPcBind {
    
	/**id*/

    @ApiModelProperty(value = "id")
	private Integer id;
	/**手机端用户id*/
	@Excel(name = "手机端用户id", width = 15)
    @ApiModelProperty(value = "手机端用户id")
	private String openid;
	/**电脑端用户id*/
	@Excel(name = "电脑端用户id", width = 15)
    @ApiModelProperty(value = "电脑端用户id")
	private String pcId;
	/**绑定类型(his,lis,pacs等)*/
	@Excel(name = "绑定类型(his,lis,pacs等)", width = 15)
    @ApiModelProperty(value = "绑定类型(his,lis,pacs等)")
	private String bindType;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**username*/
	@Excel(name = "username", width = 15)
	@TableField(exist = false)
	private String username;
	/**username*/
	@Excel(name = "username", width = 15)
	@TableField(exist = false)
	private String phoneNumber;
}
